<div class="scope-cart">
    <header class="navbar navbar-fixed-top container-fuild bg-primary">
        <div class="row clearfix">
            <div class="col-xs-4 go text-left">
                <button ui-sref="home" class="btn icon-ss-left">返回</button>
            </div>
            <div class="col-xs-4 text-center title">
                购物车
            </div>
            <div class="col-xs-4 text-right">
                <button class="btn glyphicon glyphicon-trash" ng-click="ClearGarbage()"></button>
            </div>
        </div>
    </header>
    <div class="go2pay logined navbar-fixed-bottom container bg-primary" ng-show="visiable">
        <div class="row">
            <div class="col-xs-7 left ">
                合计: <span class="price text-info">{{totalSum()}}</span> 元
            </div>
            <div class="col-xs-5 right text-right">
                <button class="btn btn-info" type="button" name="to_order" ng-click="GoSettle()">立刻下单</button>
            </div>
        </div>
    </div>
    <section id="wrapper">
        <div class="commodity">
            <ul>
                <li class="comOne" ng-repeat="comOne in cartList track by $index">
                    <div class="img col-xs-5">
                        <a ui-sref="detail({cid:comOne.commodity_id,former:'cart'})"><img
                                ng-src="{{commInfo[comOne.commodity_id].brief_pic}}"/></a>
                    </div>
                    <div class="info col-xs-7">
                        <h4 class="name">
                            {{commInfo[comOne.commodity_id].name}}{{commInfo[comOne.commodity_id].addon}}</h4>
                        <p class="spec">{{commInfo[comOne.commodity_id].spec}}</p>
                        <p class=""><span class="price">￥{{commInfo[comOne.commodity_id].sale_price}}</span></p>
                        <p class="">
                            <span class="num clearfix">
                              <button class="minus btn btn-info" ng-click="NumMinus($index)"
                                      ng-disabled="comOne.commodity_num<=0">-
                              </button>
                              <input class="text-info" name="goods-num" type="text" value="{{comOne.commodity_num}}" readonly>
                              <button class="plus btn btn-info" ng-click="NumPlus($index)">+</button>
                          </span>
                        </p>
                    </div>
                </li>
            </ul>
            <div class="emptyCart" ng-show="cartList===null||cartList==[]">
                <div class="msg">您还没有添加任何商品</div>
                <button class="btn btn-info" type="button" ui-sref="home">去看看</button>
            </div>
        </div>
    </section>
</div>
